package com.kazimsoylu;

import com.kazimsoylu.gui.Messenger;
import com.kazimsoylu.gui.MessengerApp;

import net.sf.jml.MsnMessenger;
import net.sf.jml.event.MsnMessengerListener;
/**
 * 
 * @author Kaz�m
 * @since v0.9
 */
public class MsnListener implements MsnMessengerListener
{

	@Override
	public void exceptionCaught(MsnMessenger msn, Throwable ex) 
	{
		ex.printStackTrace();		
	}

	@Override
	public void loginCompleted(MsnMessenger msn) 
	{
		MessengerApp.getInstance().setFrame( Messenger.getInstance() );
	}

	@Override
	public void logout(MsnMessenger msn) 
	{
		msn.logout();
	}

	
}
